import * as types from '../constants/ActionTypes';

export default function error(state = [], action = {}) {
  const {
        type, payload
    } = action;

  switch (type) {
        case types.LOG_ERROR:
            return { ...payload };
        default:
            return state;
    }
}
